package com.xal.controller;

import com.xal.service.SchoolService;
import com.xal.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: Swagger
 * @author: 邢奥林
 * @create: 2023-04-15 14:29
 **/
@RestController
@RequestMapping("class")
public class SchoolController {
    @Autowired
     private SchoolService classService;
    @GetMapping("list")
    public Result list(){
        Result all = classService.findAll();
        return all;
    }
}
